home *** CD-ROM | disk | FTP | other *** search
- { draw image }
- Delay(PauseTime);
- { PutImage(X, Y, Saucer^, XORput); { erase image }
- MoveSaucer(X, Y, lrx - ulx + 1, lry - uly + 1); { width/height }
- until KeyPressed;
- FreeMem(Saucer, size);
- WaitToGo;
- end; { PutImagePlay }
-
- procedure PolyPlay;
- { Draw random polygons with random fill styles on the screen }
- const
- MaxPts = 5;
- type
- PolygonType = array[1..MaxPts] of PointType;
- var
- Poly : PolygonType;
- I, Color : word;
- begin
- MainWindow('FillPoly demonstration');
- StatusLine('Esc aborts or press a key...');
- repeat
- Color := RandColor;
- SetFillStyle(Random(11)+1, Color);
- SetColor(Color);
- for I := 1 to MaxPts do
- with Poly[I] do
- begin
- X := Random(MaxX);
- Y := Random(MaxY);
- end;
- F